package com.wyx.wyxusers;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RestController
public class MemberController {
    @Value("${server.port}")
    private String serverPort;
    private static int count = 0;

    @RequestMapping("/getMemberAll")
    public List<String> getMemberAll() {
        try{
            Thread.sleep(3000);
        }catch (Exception e){

        }
        count++;
        // List<String> listUser = new ArrayList<String>();
        // listUser.add("zhangsan");
        // listUser.add("lisi");
        // listUser.add("cmx");
        // listUser.add("count"+count);
        //System.out.println("count:" + count);
        // listUser.add("serverPort:"+serverPort);
        return null;
    }
    @RequestMapping("/getMemberServiceApi")
    public String getMemberServiceApi(){
        return "this is 会员服务工程";
    }
}
